<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>机器人</title>
<#include "/admin/main/include/link_head.ftl"/>
</head>

<body class="jr-body">
<div class="jr-main-content">
<@tags.pageHeading />
    <div class="wrapper">
        <div class="row">
            <div class="col-md-12">
            <@tags.table id="easyui-datagrid-left" options="url:'page',singleSelect:true">
                <@tags.th options="field:'name',width:300,sortable:false,align:'center'">类型名称</@tags.th>
                <@tags.th options="field:'op',width:300,sortable:false,align:'center',formatter:'uiOp'">操作</@tags.th>
            </@tags.table>
            </div>
        </div>

    </div>
</div>
</body>
</html>
<#include "/admin/main/include/link_foot.ftl"/>
<script type="text/javascript">
    function uiOp(value, row, index) {
        var html = "";
        html += "<a class='jr-grid-link' href='../cat/list?typeId="+row.id+"' target='_blank'>查看机器人类别</a>";
        return html;
    }
    $(function () {
        $(".jr-add").unbind("click");
        $(".jr-add").click(function () {
            $.post("create", {}, function () {
                alert("ok");
            });
            return;
        });
    });
</script>